package com.eventx.service.activemq;

import com.eventx.bus.channel.ChannelConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Properties;

/**
 * @author: anrror
 **/
@ConfigurationProperties(prefix = "spring.eventx.activemq")
public class ActiveMqChannelConfig extends ChannelConfig {

    private String url;
    private String username;
    private String password;



    public ActiveMqChannelConfig(Properties properties) {
        super(properties);
        this.url = properties.getProperty("url");
        this.username = properties.getProperty("username");
        this.password = properties.getProperty("password");
    }


    public String getUrl() {
        return url;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }
}
